import React from "react";
// import { useState, useEffect } from 'react';
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 超级表格模块
const projectsetRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		meta: {
			title: "项目集"
		},
		children: [
			{
				path: "/projectset/dataVisualize",
				element: lazyLoad(React.lazy(() => import("@/views/projectset/dataVisualize/index"))),
				meta: {
					requiresAuth: true,
					title: "仪表盘",
					key: "projectsetDataVisualize"
				}
			},
			{
				path: "/projectset/list",
				element: lazyLoad(React.lazy(() => import("@/views/projectset/list/index"))),
				meta: {
					requiresAuth: true,
					title: "项目集列表",
					key: "projectsetList"
				}
			}
		]
	}
];

export default projectsetRouter;
